<div class="head">
	<h2><?php __d('lilgallery', 'Galleries'); ?></h2>
</div>
<?php //echo $this->element('contacts/subnav'); ?>
<div class="list">
	<?php
		if (sizeof($data)==0) {
	?>
		<p><?php __d('lilgallery', 'Ups. No galleries found.'); ?></p>
		<br />
	<?php
		} else {
			foreach ($data as $gallery) {
				echo '<div class="thumb">';
				echo $html->link(
					$lilgallery->thumb($gallery['Cover']),
					array('plugin'=>'lilgallery', 'controller'=>'images', 'action'=>'index', $gallery['Gallery']['id']),
					null, null, false
				);
				echo '<div class="caption big">'.$sanitize->html($gallery['Gallery']['title']).'</div>';
				echo '<div class="light">';
					echo __d('lilgallery', 'No. images:').' ';
					echo $sanitize->html($gallery['Gallery']['image_count']);
				echo '</div>';
				echo '</div>';
			}
		}
	?>
</div>